package com.example.demo.ela.repository;

import java.util.List;

import org.springframework.data.elasticsearch.annotations.Query;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import com.example.demo.ela.entiy.PartsEntiyEla;

public interface PartsEntiyRepository extends ElasticsearchRepository<PartsEntiyEla, Long>  {

	
	List<PartsEntiyEla>  findByName(String name);
	
	  @Query("{\"query\" : {\"match\" : {\"term\" : {\"title\" : \"?0\"}}}}")
	List<PartsEntiyEla>  findByTitle(String name);
}
